-
-
Notifications
You must be signed in to change notification settings - Fork 28.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
Only initialize Nuki configurations #49747
Only initialize Nuki configurations #49747
Conversation
Workaround for #48358
Hi @darkson95, It seems you haven't yet signed a CLA. Please do so here. Once you do that we will be able to review and accept this pull request. Thanks! |
This wouldn't import configurations when they don't specify a port (e.g. using the default port)? |
Yes, but if you don't specify a port, you will get an error like @remyderuysscher (#48358 (comment)). If you configure Nuki over the UI the port is set. |
Couldn't we just set the default port then? Otherwise it wouldn't import configurations that don't specify a port (should be the bulk of them). The configuration import should also be removed in the Juni release as it will be deprecated for 2 releases then. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For now it's an ok bug fix but this is the complete wrong approach.
Platforms don't have to be configured under their domain, they can be configured under light bla:
in YAML. That's being missed here. The only way to do this correctly is to have an async_setup_platform
to support the old config and then import that.
For now this can go in the hot fix, but this should be refactored.
I think the next release will drop yaml support, right @pree ? |
Yes, I will open a PR soon for this. |
Co-authored-by: Paulus Schoutsen <balloob@gmail.com>
Breaking change
No breaking changes, only a bug fix.
Proposed change
The Nuki integration initializes now only lock-configurations if it has the following 3 keys in it: host, port, token
Type of change
Example entry for
configuration.yaml
:# Example configuration.yaml
Additional information
Checklist
black --fast homeassistant tests
)If user exposed functionality or configuration variables are added/changed:
If the code communicates with devices, web services, or third-party tools:
Updated and included derived files by running:
python3 -m script.hassfest
.requirements_all.txt
.Updated by running
python3 -m script.gen_requirements_all
..coveragerc
.The integration reached or maintains the following Integration Quality Scale:
To help with the load of incoming pull requests: